import request from "@/utils/request.js";

//地点列表查询接口
export const placeListService = (params) => {
    return request.get('/place',{params:params});
}

// //地点查询接口
// export const placeListService = () => {
//     return request.get('/place');
// }

//添加
export const placeAddService = (placeData) => {
    return request.post('/place',placeData);
}

//编辑,更新
export const placeUpdateService = (placeData) => {
    return request.put('/place',placeData);
}

//删除
export const placeDeleteService = (id) => {
    return request.delete('/place?id='+id)
}

//用id查询
export const placeFindService = (id) => {
    return request.get('/place/findById?id='+id)
}